import request from '@/utils/request'

// 查询处置方案列表
export function listConcept(query) {
  return request({
    url: '/event/manager/concept/list',
    method: 'get',
    params: query
  })
}

// 查询处置方案详细
export function getConcept(id) {
  return request({
    url: '/event/manager/concept/' + id,
    method: 'get'
  })
}

// 新增处置方案
export function addConcept(data) {
  return request({
    url: '/event/manager/concept',
    method: 'post',
    data: data
  })
}

// 修改处置方案
export function updateConcept(data) {
  return request({
    url: '/event/manager/concept',
    method: 'put',
    data: data
  })
}

// 删除处置方案
export function delConcept(id) {
  return request({
    url: '/event/manager/concept/' + id,
    method: 'delete'
  })
}

// 导出处置方案
export function exportConcept(query) {
  return request({
    url: '/event/manager/concept/export',
    method: 'get',
    params: query
  })
}

export function getSceneList() {
  return request({
    url: '/event/manager/exigencyEvent/getExigencyAndScene',
    method: 'get',
  })
}

